package com.duan.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * @author db
 * @version 1.0
 * @description uploadDownloadService
 * @since 2023/8/17
 */
public interface UploadDownloadService {

    /**
     *  上传文件
     * @param file
     */
    void uploadDocument(MultipartFile file);


    void download(String filePath, HttpServletResponse response) ;

    void downloadFromURL(String url,String savePath) ;
}
